var aa = {};
module.exports = aa;

aa.ip = __getIp();

function __getIp() {
	var ifaces = require('os').networkInterfaces();
	var ips = {};
	for (var dev in ifaces) {
		ifaces[dev].forEach(function(details) {
			if (details.family === 'IPv4') {
				ips[dev] = details.address;
			}
		});
	}
	return ips.eth0 || ips.wlan0;
}